package ysm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import ysm.entity.Userdetail;
import ysm.service.UserdetailService;

@RestController
@RequestMapping("/public")
public class UserdetailController {

	@Autowired
	private UserdetailService userdetailService;
	
	@RequestMapping("/loadUserdetailByUid")
	public Userdetail selectByPrimaryKey2(Integer uid) {
		return userdetailService.selectByPrimaryKey2(uid);
	}
	
	@RequestMapping("/updateUserdetailByPrimaryKey")
	public void updateByPrimaryKey(Userdetail record) {
		userdetailService.updateByPrimaryKey(record);
	}
}
